using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class StStockmanageplandetailTable : TableInfo
	{
		public const string C_TABLENAME = "St_Stockmanageplandetail"; 

		public const string C_STOCKMANAGEPLANDETAILID = "STOCKMANAGEPLANDETAILID";
		public const string C_ORDERDETAILID = "ORDERDETAILID";
		public const string C_ORDERTYPE = "ORDERTYPE";
		public const string C_FORMNAME = "FORMNAME";
		public const string C_FORMID = "FORMID";
		public const string C_FORMTYPE = "FORMTYPE";
		public const string C_FORMDATE = "FORMDATE";
		public const string C_FORMOPERATOR = "FORMOPERATOR";
		public const string C_FORMDETAILID = "FORMDETAILID";
		public const string C_STOCKID = "STOCKID";
		public const string C_PARENTPARTID = "PARENTPARTID";
		public const string C_PARTSID = "PARTSID";
		public const string C_PARTSTYPE = "PARTSTYPE";
		public const string C_PLANNUM = "PLANNUM";
		public const string C_STATUS = "STATUS";
				
		public StStockmanageplandetailTable()
		{
			_tableName ="St_Stockmanageplandetail";
		}

		protected static StStockmanageplandetailTable _current;

		public static StStockmanageplandetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new StStockmanageplandetailTable();

			_current.Add(C_STOCKMANAGEPLANDETAILID, new ColumnInfo(C_STOCKMANAGEPLANDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_ORDERDETAILID, new ColumnInfo(C_ORDERDETAILID, "", false, typeof(Int32?)));
			_current.Add(C_ORDERTYPE, new ColumnInfo(C_ORDERTYPE, "", false, typeof(String)));
			_current.Add(C_FORMNAME, new ColumnInfo(C_FORMNAME, "", false, typeof(String)));
			_current.Add(C_FORMID, new ColumnInfo(C_FORMID, "", false, typeof(String)));
			_current.Add(C_FORMTYPE, new ColumnInfo(C_FORMTYPE, "", false, typeof(String)));
			_current.Add(C_FORMDATE, new ColumnInfo(C_FORMDATE, "", false, typeof(DateTime?)));
			_current.Add(C_FORMOPERATOR, new ColumnInfo(C_FORMOPERATOR, "", false, typeof(String)));
			_current.Add(C_FORMDETAILID, new ColumnInfo(C_FORMDETAILID, "", false, typeof(String)));
			_current.Add(C_STOCKID, new ColumnInfo(C_STOCKID, "", false, typeof(String)));
			_current.Add(C_PARENTPARTID, new ColumnInfo(C_PARENTPARTID, "", false, typeof(String)));
			_current.Add(C_PARTSID, new ColumnInfo(C_PARTSID, "", false, typeof(String)));
			_current.Add(C_PARTSTYPE, new ColumnInfo(C_PARTSTYPE, "", false, typeof(String)));
			_current.Add(C_PLANNUM, new ColumnInfo(C_PLANNUM, "", false, typeof(Decimal?)));
			_current.Add(C_STATUS, new ColumnInfo(C_STATUS, "", false, typeof(String)));
						
		}

		public ColumnInfo STOCKMANAGEPLANDETAILID
		{
			get { return this[C_STOCKMANAGEPLANDETAILID];}
		}

		public ColumnInfo ORDERDETAILID
		{
			get { return this[C_ORDERDETAILID];}
		}

		public ColumnInfo ORDERTYPE
		{
			get { return this[C_ORDERTYPE];}
		}

		public ColumnInfo FORMNAME
		{
			get { return this[C_FORMNAME];}
		}

		public ColumnInfo FORMID
		{
			get { return this[C_FORMID];}
		}

		public ColumnInfo FORMTYPE
		{
			get { return this[C_FORMTYPE];}
		}

		public ColumnInfo FORMDATE
		{
			get { return this[C_FORMDATE];}
		}

		public ColumnInfo FORMOPERATOR
		{
			get { return this[C_FORMOPERATOR];}
		}

		public ColumnInfo FORMDETAILID
		{
			get { return this[C_FORMDETAILID];}
		}

		public ColumnInfo STOCKID
		{
			get { return this[C_STOCKID];}
		}

		public ColumnInfo PARENTPARTID
		{
			get { return this[C_PARENTPARTID];}
		}

		public ColumnInfo PARTSID
		{
			get { return this[C_PARTSID];}
		}

		public ColumnInfo PARTSTYPE
		{
			get { return this[C_PARTSTYPE];}
		}

		public ColumnInfo PLANNUM
		{
			get { return this[C_PLANNUM];}
		}

		public ColumnInfo STATUS
		{
			get { return this[C_STATUS];}
		}

		
	}
}


